package com.ccjq.jq173.shopping.po;

import com.ccjq.jq173.product.po.Product;

import java.io.Serializable;

public class ShoppingCart implements Serializable {
    private String shoppingCarId;//购物车ID
    private String productId;//商品Id
    private int quantity;//购买商品数量
    private String userId;//用户Id
    private double subtotal;//小计
    private Product product;//商品信息

    public String getShoppingCarId() {
        return shoppingCarId;
    }

    public void setShoppingCarId(String shoppingCarId) {
        this.shoppingCarId = shoppingCarId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public double getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(double subtotal) {
        this.subtotal = subtotal;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }
}
